#ifndef DATA_HOLDER_H_LL_
#define DATA_HOLDER_H_LL_

#include "stm32f10x.h"

#ifdef __cplusplus
 extern "C" {
#endif
     
#define TEAM_FRONT 1
#define TEAM_BACK  2
     
 #define ENCODER_BIG_GEAR 1
#define ENCODER_SMALL_GEAR 1
     
typedef enum _WheelState{
    WHEEL_NORMAL = 0,
    WHEEL_SPIN = 1,         //原地旋转
    WHEEL_ERROR,
    WHEEL_ERROR_ANG_UNSAFE,
}WheelState_T;

#pragma pack(push)  /* save origin value */
#pragma pack(1)

typedef struct _SetDoubleCar{
    u8 enable;                          //1-使能双车, 0-禁止双车
    u8 position;                        //相对位置1-前车，2-后车
    u32 distance;                       //两车中心距(mm)
}SetDoubleCar_T;

#pragma pack(pop)  /* restore origin value */

#ifdef __cplusplus
 }
#endif

#endif
